<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
 <script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
 <script>
  $(function() {
    $( ".datepicker" ).datepicker();
  });
</script>
<?php echo Form::open('admin/promotions/save');?>
<?php if(isset($subcategory_id)):?>
<?php echo Form::hidden('subcategory_id', $subcategory_id);?>
<?php elseif(isset($item_id)):?>
<?php echo Form::hidden('item_id', $item_id);?>
<?php endif;?>
<?php echo Form::label('description', 'Description');?>
<br>
<?php echo Form::textarea('description');?>
<br>
<?php echo Form::label('Discount Type');?>
<br>
<?php echo Form::select('discount_type', array('amount' => 'Dollar Amount', 'percent' => 'Percentage'))?>
<?php echo Form::input('discount'); ?>
<br>
<?php echo Form::label('Promotion Start Date');?>
<?php echo Form::input('start_date','', array('class' => 'datepicker'))?>
<?php echo Form::label('Promotion End Date');?>
<?php echo Form::input('end_date','', array('class' => 'datepicker'))?>
<br>
<?php echo Form::submit('submit', 'Create Promotion');?>
<?php echo Form::close();?>
